package com.soul.quartz.job;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import java.util.Arrays;

/**
 * 任务执行类
 */
public class HelloJob implements Job {

    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        /*System.out.println(jobExecutionContext.getJobDetail().getJobDataMap().get("job"));
        System.out.println(jobExecutionContext.getTrigger().getJobDataMap().get("trigger"));
        System.out.println(Arrays.toString(jobExecutionContext.getMergedJobDataMap().getKeys()));*/
        System.out.println("hello world");
    }
}